package com.example.backend.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author xwyzsn
 * @since 2023-03-07
 */
@Data
public class Attendance implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * id
     */
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    /**
     * userId
     */
    private Integer userId;

    /**
     * dept id
     */
    private Integer deptId;

    /**
     * attendant status
     */
    private String attendantStatus;

    /**
     * start time
     */
    private Date startTime;

    /**
     * end time
     */
    private Date endTime;
    private String username;
    private String deptname;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }
    public Integer getUser_id() {
        return userId;
    }

    public void setUser_id(Integer userId) {
        this.userId = userId;
    }
    public Integer getDept_id() {
        return deptId;
    }

    public void setDept_id(Integer deptId) {
        this.deptId = deptId;
    }
    public String getAttendant_status() {
        return attendantStatus;
    }

    public void setAttendant_status(String attendantStatus) {
        this.attendantStatus = attendantStatus;
    }
    public Date getStart_time() {
        return startTime;
    }

    public void setStart_time(Date startTime) {
        this.startTime = startTime;
    }
    public Date getEnd_time() {
        return endTime;
    }

    public void setEnd_time(Date endTime) {
        this.endTime = endTime;
    }

    @Override
    public String toString() {
        return "Attendance{" +
            "id=" + id +
            ", userId=" + userId +
            ", deptId=" + deptId +
            ", attendantStatus=" + attendantStatus +
            ", startTime=" + startTime +
            ", endTime=" + endTime +
        "}";
    }
}
